* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #2193b0 30%, #6dd5ed 70%);
  overflow: hidden;
}

/* 屏幕中间画一根线 */
.container::before {
  position: absolute;
  content: "";
  width: 100%;
  border-top: 1px solid rgb(255, 255, 255, 0.5);
  z-index: 1;
}

.container ul {
  display: flex;
  list-style-type: none;
  z-index: 2;
}

.container ul {
  display: flex;
}

.container ul li a {
  position: relative;
  /* 行内块: 给可以给宽高了 */
  text-decoration: none;
  display: inline-block;
  width: 80px;
  height: 80px;
  margin: 20px;
  border: 1px solid rgb(255, 255, 255, 0.5);
  border-radius: 10px;

  /* 图标居中显示 */
  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 32px;

  /* 盒子阴影 */
  box-shadow: 0px 5px 20px rgba(255, 255, 255, 0.3);
  /* 背景模糊 */
  backdrop-filter: blur(2px);
  /* 过渡 */
  transition: all 0.3s ease-in-out;

  /* 伪元素选择器超出部分隐藏 */
  overflow: hidden;
}

.container ul li {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  /* background-color: pink; */
}

/* 文字显示 */
.container ul li .text {
  position: absolute;
  color: rgb(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.container ul li:hover .text {
  transform: translateY(-10px);
  opacity: 1;
}

.container ul li:hover a {
  transform: translateY(-20px);
}

/* 重点来了, 扫光动画 */
.container ul li a::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  /* 沿着 X 轴倾斜45° */
  transform: skew(45deg) translateX(-100px);
  transition: all 0.3s ease-in-out;
}

.container ul li:hover a::before {
  transform: skew(45deg) translateX(120px);
}

.container .color {
  position: absolute;
  filter: blur(200px);
}

.container .color:nth-child(1) {
  top: -500px;
  width: 800px;
  height: 800px;
  background-color: #fd746c;
}

.container .color:nth-child(2) {
  bottom: -400px;
  width: 600px;
  height: 600px;
  background-color: #cf8bf3;
}

.container .color:nth-child(3) {
  bottom: 100px;
  width: 400px;
  height: 400px;
  background-color: #fdb99b;
}
